package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.cricket.CricketBookData;
import com.yanqu.road.entity.cricket.CricketData;
import com.yanqu.road.entity.cricket.CricketEquipSkill;
import com.yanqu.road.entity.cricket.UserCricketData;
import com.yanqu.road.entity.player.PatronsCricketBindingData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserCricketBussiness {

    public static UserCricketData getUserCricketData(long userId) {
        return DaoHelper.getUserCricketDaoImpl().getUserCricketData(userId);
    }

    public static Map<Integer, CricketData> getCricketDataMap(long userId) {
        return DaoHelper.getCricketDaoImpl().getCricketDataMap(userId);
    }

    public static Map<Integer, CricketBookData> getCricketBookDataMap(long userId) {
        return DaoHelper.getCricketBookDaoImpl().getCricketBookDataMap(userId);
    }

    public static Map<Integer, PatronsCricketBindingData> getCricketBindDataMap(long userId) {
        return DaoHelper.getCricketBindDaoImpl().getCricketBindDataMap(userId);
    }

    public static Map<Integer, List<CricketEquipSkill>> getCricketEquipSkillMap(long userId) {
        return DaoHelper.getCricketEquipSkillDaoImpl().getCricketEquipSkillMap(userId);
    }


    public static boolean addUserCricket(UserCricketData userCricketData) {
        return DaoHelper.getUserCricketDaoImpl().add(userCricketData);
    }

    public static boolean updateUserCricket(UserCricketData userCricketData) {
        return DaoHelper.getUserCricketDaoImpl().update(userCricketData);
    }

    public static boolean addCricket(CricketData cricketData) {
        return DaoHelper.getCricketDaoImpl().add(cricketData);
    }

    public static boolean updateCricket(CricketData cricketData) {
        return DaoHelper.getCricketDaoImpl().update(cricketData);
    }

    public static boolean addCricketEquipSkill(CricketEquipSkill data) {
        return DaoHelper.getCricketEquipSkillDaoImpl().add(data);
    }

    public static boolean updateCricketEquipSkill(CricketEquipSkill data) {
        return DaoHelper.getCricketEquipSkillDaoImpl().update(data);
    }


    public static boolean addCricketBook(CricketBookData bookData) {
        return DaoHelper.getCricketBookDaoImpl().add(bookData);
    }

    public static boolean updateCricketBook(CricketBookData bookData) {
        return DaoHelper.getCricketBookDaoImpl().update(bookData);
    }

    public static boolean addCricketBind(PatronsCricketBindingData bindData) {
        return DaoHelper.getCricketBindDaoImpl().add(bindData);
    }

    public static boolean updateCricketBind(PatronsCricketBindingData bindData) {
        return DaoHelper.getCricketBindDaoImpl().update(bindData);
    }

    public static Map<Long, Map<Integer, CricketData>> getSomeFishDataMap(List<Long> outLineUserList) {
        return DaoHelper.getCricketDaoImpl().getSomeFishDataMap(outLineUserList);
    }
}
